package org.example.controller;

import org.example.util.JsonResult;
import org.example.util.ResultTool;
import org.springframework.web.bind.annotation.*;

/**
 * @Auther:Liu
 * @Testname:SecondController
 * @Date:2025/9/16 09:44
 */
@RestController
@RequestMapping("/second")
public class SecondController {
    @GetMapping("/find")
    JsonResult find(){
        return ResultTool.success("This is find2 method");
    }
    @PostMapping("/save")
    JsonResult save(){
        return ResultTool.success("This is save2 method");
    }
    @DeleteMapping("/delete")
    JsonResult delete(){
        return ResultTool.success("This is delete2 method");
    }
    @PutMapping("/update")
    JsonResult update(){
        return ResultTool.success("This is update2 method");
    }
}
